package com.ilibrary.web.action;

import com.ilibrary.base.MyBaseAction;
import com.ilibrary.constants.MyConstants;
import com.ilibrary.service.UserInfoService;
import com.ilibrary.web.vo.UserInfoVO;

public class UpdateUserPasswordAction extends MyBaseAction {
	private UserInfoService userInfoService;
	
	public UserInfoService getUserInfoService() {
		return userInfoService;
	}
	public void setUserInfoService(UserInfoService userInfoService) {
		this.userInfoService = userInfoService;
	}

	@Override
	public String execute() throws Exception {
		UserInfoVO loginUser = (UserInfoVO) getSSN().getAttribute(MyConstants.ILIBRARY_lOGIN_USER);
		if(loginUser == null) {
			return "login";
		}
		return SUCCESS;
	}
}
